<?xml version="1.0" encoding="UTF-8" ?>

<!--

    Copyright (c) 1997, 2018 Oracle and/or its affiliates.
    Copyright (c) 2018 Payara Services Limited. 
    All rights reserved.
    
    This program and the accompanying materials are made available under the
    terms of the Eclipse Public License v. 2.0, which is available at
    http://www.eclipse.org/legal/epl-2.0.

    This Source Code may also be made available under the following Secondary
    Licenses when the conditions for such availability set forth in the
    Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
    version 2 with the GNU Classpath Exception, which is available at
    https://www.gnu.org/software/classpath/license.html.

    SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0

-->

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://xmlns.jcp.org/jsf/facelets">

    <head>
        <title>WCAG Table Test</title>
    </head>
    
    <body bgcolor="white">
        <h:form>
            <p>
                This is the sample table from the HTML 4.0.1 specificion section 11.5. You can see it at &lt;<a
                    href="http://www.w3.org/TR/html401/struct/tables.html#h-11.5">http://www.w3.org/TR/html401/struct/tables.html#h-11.5</a>&gt;.
            </p>

            <h:dataTable value="#{dataSource.codePageData}" var="row" frame="hsides" rules="groups"
                summary="Code page support in different versions of MS Windows." bodyrows="0,10">
                <f:facet name="colgroups">
                    <h:panelGroup>
                        <colgroup align="center" />
                        <colgroup align="left" />
                        <colgroup align="center" span="2" />
                        <colgroup align="center" span="3" />
                    </h:panelGroup>
                </f:facet>

                <f:facet name="caption">
                    <h:outputText value="CODE-PAGE SUPPORT IN MICROSOFT WINDOWS" />
                </f:facet>

                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Code-Page ID" />
                    </f:facet>
                    <h:outputText value="#{row.codePageId}" />
                </h:column>

                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Name" />
                    </f:facet>
                    <h:outputText value="#{row.name}" />
                </h:column>

                <h:column>
                    <f:facet name="header">
                        <h:outputText value="ACP" />
                    </f:facet>
                    <h:outputText value="#{row.ACP}" />
                </h:column>

                <h:column>
                    <f:facet name="header">
                        <h:outputText value="OEMCP" />
                    </f:facet>
                    <h:outputText value="#{row.OEMCP}" />
                </h:column>

                <h:column rowHeader="true">
                    <f:facet name="header">
                        <h:outputText value="Windows NT 3.1" />
                    </f:facet>
                    <h:outputText value="#{row.winNT31}" />
                </h:column>

                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Windows NT 3.51" />
                    </f:facet>
                    <h:outputText value="#{row.winNT351}" />
                </h:column>

                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Windows 95" />
                    </f:facet>
                    <h:outputText value="#{row.win95}" />
                </h:column>

            </h:dataTable>

        </h:form>
    </body>
</html>

